<?php

use Illuminate\Database\Seeder;
use \Illuminate\Support\Facades\DB;
class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     *
     * php artisan db:seed
     *
     *
     *
     */
    public function run()
    {
//         $this->call(BlogsTableSeeder::class);
        $array = [
            'title'     => str_random(10),
            'author'    => str_random(5),
            'content' => str_random(60),
        ];
        DB::table('blogs')->insert($array);

    }
}
